<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
<meta charset="UTF-8">
<title>菜单</title>
<link rel="stylesheet" href="/js/layui/css/layui.css">
<link rel="stylesheet" href="/js/zTree/css/metroStyle/metroStyle.css">
</head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo">layui 后台布局</div>
			<!-- 头部区域（可配合layui已有的水平导航） -->
			<ul class="layui-nav layui-layout-left">
				<li class="layui-nav-item"><a href="javascript:;">控制台</a></li>
			</ul>
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="javascript:;"> <img src="http://t.cn/RCzsdCq"
						class="layui-nav-img"> 贤心
				</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;">基本资料</a>
						</dd>
					</dl></li>
				<li class="layui-nav-item"><a href="/log_out">退了</a></li>
			</ul>
		</div>
		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
				<ul class="layui-nav layui-nav-tree" lay-filter="test">
					<!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->
					<li th:each="menu,mStaus:${#authentication.principal.menuList}" class="layui-nav-item">
						<a	href="javascript:;" th:layUrl="@{${#lists.size(menu.child)>0}?'':${menu.menuUrl}}" th:text="${menu.menuText}"></a>
						<dl class="layui-nav-child" th:if="${#lists.size(menu.child)>0}">
							<dd th:each="mChild,mCStatus:${menu.child}">
								<a href="javascript:;" th:layUrl="@{${mChild.menuUrl}}" th:text="${mChild.menuText}"></a>
							</dd>
						</dl>
					</li>
				</ul>
			</div>
		</div>
		<div class="layui-body">
		</div>

		<div class="layui-footer">
			<!-- 底部固定区域 -->
			© layui.com - 底部固定区域 <a href="/log_out">退出登录</a>
			<input type="hidden" name="hideId" th:value="${#authentication.principal.id}" />
		</div>
	</div>

</body>
<script type="text/javascript" src="/js/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="/js/commentUtils.js"></script>
<script type="text/javascript" src="/js/layui/layui.js"></script>
<script type="text/javascript" src="/js/zTree/js/jquery.ztree.all.js"></script>
<script type="text/javascript">
	layui.config({
		base : '/js/exports/'
	}).use([ 'element', 'jquery','initMenu' ], function() {
		var element = layui.element, $ = layui.jquery;
	});
</script>
</html>